package com.glsc.ngateway.common.base.dto.opmanage.report.subscribe;

import smartbi.sdk.service.simplereport.NameValuePair;
import smartbi.sdk.service.simplereport.Parameter;

import java.util.List;

/**
 * @author: qiyr
 * @date: 2022/6/7 14:45
 * @description: 报表参数Dto
 */
public class ReportParamDto {

    private String id;
    private String name;
    private String componentType;
    private String displayValue;
    private String dateFormat;
    private String dateFlag;

    /**
     * 报表参数备选值
     */
    private List<NameValuePair> nameValuePairList;

    public ReportParamDto() {
        this.dateFlag = "0";
    }

    public ReportParamDto(Parameter parameter, List<NameValuePair> nameValuePairList) {
        this.id = parameter.getId();
        this.name = parameter.getName();
        this.componentType = parameter.getComponentType();
        this.displayValue = parameter.getDisplayValue();
        this.dateFlag = "0";
        this.nameValuePairList = nameValuePairList;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getComponentType() {
        return componentType;
    }

    public void setComponentType(String componentType) {
        this.componentType = componentType;
    }

    public String getDisplayValue() {
        return displayValue;
    }

    public void setDisplayValue(String displayValue) {
        this.displayValue = displayValue;
    }

    public String getDateFormat() {
        return dateFormat;
    }

    public void setDateFormat(String dateFormat) {
        this.dateFormat = dateFormat;
    }

    public String getDateFlag() {
        return dateFlag;
    }

    public void setDateFlag(String dateFlag) {
        this.dateFlag = dateFlag;
    }

    public List<NameValuePair> getNameValuePairList() {
        return nameValuePairList;
    }

    public void setNameValuePairList(List<NameValuePair> nameValuePairList) {
        this.nameValuePairList = nameValuePairList;
    }
}
